package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {
    PageInfo<Employee> query(QueryObject qo);
    void save(Employee employee, Long[] roleIds);
    void update(Employee employee, Long[] roleIds);
    void delete(Long id);
    Employee get(Long id);
    List<Employee> list();
    Employee login(String username, String password);

    void batchDeleteByIds(Long[] ids);

    Employee selectByUserName(String username);

    Workbook export();

    void imported(Workbook workbook);

    List<Employee> querySellersByRoleSn(String market, String marketManger);
}
